const userInfo = {
  accesstoken: 'ee8584dcc85b6ad9c36ee86be3e7eec7',
  compId: 2023050401,
  compName: '中山市创思特智能',
  pwdUpdDates: 0,
  roleId: 1,
  roleName: '系统管理员',
  userId: 1,
  userName: '系统管理员',
  userNo: 'cst_admin',
  userPhone: '13809979008',
  userPwd: null,
  userState: true,
  userType: 1,
  roleCodes: [
    "admin"
  ],
  permissionCodes: [
    "*:*:*"
  ]
}
export default [
  {
    url: '/dev-api/account/login',
    type: 'post',
    response: (config) => {
      // mock error
      if (!config.body) {
        return {
          code: 401,
          message: 'Account and password are incorrect.'
        }
      }
      return {
        code: 200,
        msg: '操作成功',
        data: userInfo
      }
    }
  },
  // user logout
  {
    url: '/dev-api/user/userLoginOut',
    type: 'post',
    response: (_) => {
      return {
        code: 40002,
        msg: '操作成功'
      }
    }
  }
];
